﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Taurus.Platform.XML
{
    /// <summary>
    /// XML持久化操作接口
    /// </summary>
    public interface IPersistence<T>
    {
    
        void Save();
        void Reload();
        void Insert(T item);
        void Delete(T item);
        void Update(T item);
        XElement GetEl(T item);
        T GetObject(string id);
        List<T> GetList(Func<T,bool> func);
       
    }
}
